const {createProxyMiddleware} = require('http-proxy-middleware')

module.exports = function(app){
  app.use(
    createProxyMiddleware('/api',{
      target:'http://kumanxuan1.f3322.net:8001/',
      changeOrigin:true,
      pathRewrite:{'^/api':''}
    })
  )
}